package br.com.lazyprogrammer.worldsoccermanager.network.model;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import br.com.lazyprogrammer.worldsoccermanager.util.Constants;

public class Team implements Serializable {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1864890774039418997L;
	
	private String id, shortName, fullName;
	private Integer win, draw, lose, foreground, background;
	private long cash, supporter, evaluation, createdOn;
	
	private List<Player> players;
	private Stadium stadium;
	private List<Staff> staff;
	
	public Team() {
		
	}
	
	public Team(String id, String shortName, String fullName) {
		this.id		= id;
		this.shortName	= shortName;
		this.fullName	= fullName;
		
		this.win	= 0;
		this.draw	= 0;
		this.lose	= 0;
		this.evaluation	= 0;
		
		this.cash	= Constants.DEFAULT_CASH;
		this.supporter	= Constants.DEFAULT_SUPPORTERS;
		this.createdOn	= System.currentTimeMillis();
	}

    public int getBackground() {
        return background;
    }

    public long getCash() {
		return cash;
	}
	
	public List<Staff> getStaff() {
		return staff;
	}
	
	public long getCreatedOn() {
		return createdOn;
	}
	
	public Integer getDraw() {
		return draw;
	}
	
	public long getEvaluation() {
		return evaluation;
	}

    public int getForeground() {
        return foreground;
    }

    public String getId() {
		return id;
	}
	
	public String getFullName() {
		return fullName;
	}
	
	public Integer getLose() {
		return lose;
	}
	
	public String getShortName() {
		return shortName;
	}
	
	public Stadium getStadium() {
		return stadium;
	}
	
	public long getSupporters() {
		return supporter;
	}
	
	public Integer getWin() {
		return win;
	}

    public void setBackground(int color) {
        this.background = color;
    }

    public void setCash(long cash) {
		this.cash	= cash;
	}
	
	public void setCoach(Staff staff) {
		this.staff.add(staff);
	}
	
	public void setCoach(List<Staff> staff) {
		this.staff	= staff;
	}
	
	public void setCreatedOn(long createdOn) {
		this.createdOn	= createdOn;
	}
	
	public void setDraw(int draw) {
		this.draw	= draw;
	}
	
	public void setEvaluation(long evaluation) {
		this.evaluation	= evaluation;
	}

    public void setForeground(int color) {
        this.foreground = color;
    }

    public void setFullName(String fullName) {
		this.fullName	= fullName;
	}
	
	public void setLose(int lose) {
		this.lose	= lose;
	}
	
	public void setShortName(String shortName) {
		this.shortName	= shortName;
	}
	
	public void setSupporter(long supporter) {
		this.supporter	= supporter;
	}
	
	public void setStadium(Stadium stadium) {
		this.stadium	= stadium;
	}
	
	public void setWin(int win) {
		this.win	= win;
	}

}
